package com.fanbuchi.fukua.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.fanbuchi.fukua.R;

/**
 * Created by killerzhangsan on 2015/5/28.
 */
public class SettingsAppAdapter extends BaseAdapter {

    String[] name;
    LayoutInflater layoutInflater;
    boolean indication;
    public  SettingsAppAdapter(Context context,String[] name,boolean indication){
        this.name=name;
        layoutInflater= LayoutInflater.from(context);
        this.indication=indication;
    }

    @Override
    public int getCount() {
        return name.length;
    }

    @Override
    public Object getItem(int i) {
        return name[i];
    }

    @Override
    public long getItemId(int i) {
        return i;
    }

    ViewHolder viewHolder;
    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {


        return view;
    }


    public  static class ViewHolder{
        TextView mName;
        ImageView indication;
    }


}
